package com.eric.flowabledemo.constant;

/**
 * code码参考messages.properties
 */
public enum ResponseCodeEnum {
    SUCCESS(true,200),
    SERVER_ERROR(false,500),
    START_PROCESS(true, 10002),
    COMPLETE(true, 10001);

    //操作是否成功
    boolean success;
    //操作代码
    int code;

    ResponseCodeEnum(boolean success, int code){
        this.success = success;
        this.code = code;
    }

    public boolean success() {
        return success;
    }
    public int code() {
        return code;
    }
}
